<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="nis.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ref.nis.html">YP/NIS 函数</a></div>
 <div class="up"><a href="book.nis.html">YP/NIS</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="nis.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>

  
   <dt id="constant.yperr-access">
    <strong><code>YPERR_ACCESS</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     access violation (this has only been added recently and is only available from PECL SVN for now)
    </span>
   </dd>

  
  
   <dt id="constant.yperr-badargs">
    <strong><code>YPERR_BADARGS</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     The function arguments are bad 
    </span>
   </dd>

  
  
   <dt id="constant.yperr-baddb">
    <strong><code>YPERR_BADDB</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     YP database is bad
    </span>
   </dd>

  
  
   <dt id="constant.yperr-busy">
    <strong><code>YPERR_BUSY</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Database busy
    </span>
   </dd>

  
  
   <dt id="constant.yperr-domain">
    <strong><code>YPERR_DOMAIN</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     cannot bind to server in this domain
    </span>
   </dd>

  
  
   <dt id="constant.yperr-key">
    <strong><code>YPERR_KEY</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     no such key in map
    </span>
   </dd>

  
  
   <dt id="constant.yperr-map">
    <strong><code>YPERR_MAP</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     no such map in server&#039;s domain
    </span>
   </dd>

  
  
   <dt id="constant.yperr-nodom">
    <strong><code>YPERR_NODOM</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Local domain name not set
    </span>
   </dd>

  
  
   <dt id="constant.yperr-nomore">
    <strong><code>YPERR_NOMORE</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     No more records in map database
    </span>
   </dd>

  
  
   <dt id="constant.yperr-pmap">
    <strong><code>YPERR_PMAP</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Can&#039;t communicate with portmapper 
    </span>
   </dd>

  
  
   <dt id="constant.yperr-resrc">
    <strong><code>YPERR_RESRC</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     resource allocation failure 
    </span>
   </dd>

  
  
   <dt id="constant.yperr-rpc">
    <strong><code>YPERR_RPC</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     RPC failure - domain has been unbound
    </span>
   </dd>

  
  
   <dt id="constant.yperr-ypbind">
    <strong><code>YPERR_YPBIND</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Can&#039;t communicate with ypbind
    </span>
   </dd>

  
  
   <dt id="constant.yperr-yperr">
    <strong><code>YPERR_YPERR</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     internal yp server or client error 
    </span>
   </dd>

  
  
   <dt id="constant.yperr-ypserv">
    <strong><code>YPERR_YPSERV</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     Can&#039;t communicate with ypserv
    </span>
   </dd>

  
  
   <dt id="constant.yperr-vers">
    <strong><code>YPERR_VERS</code></strong> 
    (<span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>)
   </dt>

   <dd>

    <span class="simpara">
     YP version mismatch
    </span>
   </dd>

  
 </dl>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="nis.resources.html">资源类型</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="ref.nis.html">YP/NIS 函数</a></div>
 <div class="up"><a href="book.nis.html">YP/NIS</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
